#pragma once
#include<iostream>
#include<iomanip>
#include<string>

using namespace std;

class Student
{
private: 
	string firstName;
	string lastName;
	int enrollmentYear;

public:

	Student();
	Student(string fn, string ln, int ey);

	string GetfirstName() { return firstName;}
	void SetfirstName(string fn) { fn=firstName;}
	string GetlastName() { return lastName;}
	void SetlastName(string ln) { ln=lastName;}
	int GetenrollmentYear() { return enrollmentYear;}
	void SetenrollmentYear(int ey) { ey=enrollmentYear;}

	void Read();
	void Write();
	friend ostream & operator << (ostream & o, const Student & Student);
	friend istream & operator >> (istream & in, Student & Student);
};

